package com.example.whatrubbish.model;

import java.io.Serializable;
import java.util.Date;

public class Order implements Serializable {
    private Long id;

    private String userId;

    private Long addressId;

    private Long commodityId;

    private String status;

    private Date createTime;

    private Date deliveryTime;

    private Date endTime;

    private String courierNumber;

    private String courierCompany;

    public Order(Long id, String userId, Long addressId, Long commodityId, String status, Date createTime, Date deliveryTime, Date endTime, String courierNumber, String courierCompany) {
        this.id = id;
        this.userId = userId;
        this.addressId = addressId;
        this.commodityId = commodityId;
        this.status = status;
        this.createTime = createTime;
        this.deliveryTime = deliveryTime;
        this.endTime = endTime;
        this.courierNumber = courierNumber;
        this.courierCompany = courierCompany;
    }

    public Order() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public Long getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Long commodityId) {
        this.commodityId = commodityId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getCourierNumber() {
        return courierNumber;
    }

    public void setCourierNumber(String courierNumber) {
        this.courierNumber = courierNumber == null ? null : courierNumber.trim();
    }

    public String getCourierCompany() {
        return courierCompany;
    }

    public void setCourierCompany(String courierCompany) {
        this.courierCompany = courierCompany;
    }
}